package com.model;

import java.util.Timer;

public class TimerSimpanPublikasi {

    private int waktuInterval;

    public TimerSimpanPublikasi(int waktuInterval) {
        this.waktuInterval = waktuInterval;
        Timer timer = new Timer();
        timer.schedule(new TugasSimpanPublikasi(), 5000, waktuInterval);
    }
}
